package com.cnhis.cloudhealth.clidoctorweb.clireport;

import javax.ws.rs.FormParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.cnhis.cloudhealth.clinical.clidoctor.clireport.service.ICliReport;
import com.cnhis.cloudhealth.commons.Mappers.ModelVo;
import java.util.HashMap;

@Path("clireport")
@Component
public class CliReportRest {
   @Reference
   private ICliReport cliReport;
    /*门诊工作日报*/
   /**
    * 
    * @param BCE02B 开单人号
    * @param VAK13A 起始时间
    * @param VAK13B 结束时间
    * @return
    * @throws Exception
    */
    @SuppressWarnings("unchecked")
	@POST
	@Path("cliworkreport")
	@Produces({ MediaType.APPLICATION_JSON })
   public ModelVo cliWorkReport(@FormParam("BCE02B") String BCE02B,
		   @FormParam("VAK13A") String VAK13A,
		   @FormParam("VAK13B") String VAK13B)throws Exception{
	    HashMap map = new HashMap();
	    map.put("BCE02B", BCE02B);
	    map.put("VAK13A", VAK13A);
	    map.put("VAK13B", VAK13B);
	    return cliReport.cliWorkReport(map);
   }
}
